import request from '@/utils/request'

// 查询销退分货列表
export function selectByConditionList(query) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods/selectByConditionList',
    method: 'get',
    params: query
  })
}
// 查询销退分货列表
export function selectDataAll(query) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods/selectDataAll',
    method: 'get',
    params: query
  })
}
// 查询销退分货列表
export function listBiSalesReturnSortGoods(query) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods/list',
    method: 'get',
    params: query
  })
}
// 查询销退分货详细
export function getBiSalesReturnSortGoods(id) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods/' + id,
    method: 'get'
  })
}

// 新增销退分货
export function addBiSalesReturnSortGoods(data) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods',
    method: 'post',
    data: data
  })
}

// 修改销退分货
export function updateBiSalesReturnSortGoods(data) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods',
    method: 'put',
    data: data
  })
}

// 删除销退分货
export function delBiSalesReturnSortGoods(id) {
  return request({
    url: '/productAllocation/BiSalesReturnSortGoods/' + id,
    method: 'delete'
  })
}
